package com.csw02;

import java.io.InputStream;
import java.util.Properties;

public class Test {
    public static void main(String[] args) throws Exception{
        Properties properties = new Properties();
        InputStream is = Test.class.getClassLoader().getResourceAsStream("mysql.properties");
        properties.load(is);
        String driver = properties.getProperty("driver");
        String url = properties.getProperty("url");
        String userame = properties.getProperty("username");
        String password = properties.getProperty("password");
        System.out.println(driver);System.out.println(url);System.out.println(userame);System.out.println(password);
    }
}
